package com.example.lockfulldemo.tools;

import com.example.lockfulldemo.entity.TicketEntity;

public class ThreadLocalUtil {
    private static ThreadLocal<TicketEntity> threadLocal = new ThreadLocal<>();
    public static void set(TicketEntity ticketEntity){
        threadLocal.set(ticketEntity);
    }
    public static TicketEntity get(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }
}
